package com.jmu.content.controller.user;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.jmu.constant.StatusConstant;
import com.jmu.content.pojo.ChargePile;
import com.jmu.content.result.Result;
import com.jmu.content.service.ChargePileService;
import com.jmu.content.vo.ChargePileUserVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author fems
 * @since 2024-05-06
 */
@RestController("userChargePileController")
@RequestMapping("/user/charge-pile")
public class ChargePileController {

    @Autowired
    ChargePileService chargePileService;

    @GetMapping("/{id}")
    @ApiOperation("根据充电站查找充电桩")
    public Result<List> getByStationId(@PathVariable Long id){
        List<ChargePileUserVO> list = chargePileService.getByIdBatchPrice(id);


        return Result.success(list);
    }

}

